<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">

<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>elFinder</title>

	<link rel="stylesheet" href="js/ui-themes/base/ui.all.css" type="text/css" media="screen" title="no title" charset="utf-8">
	<link rel="stylesheet" href="css/elfinder.css" type="text/css" media="screen" title="no title" charset="utf-8">

	<script src="../jquery/jquery.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="../jqueryui/jquery-ui.custom.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/elfinder.min.js" type="text/javascript" charset="utf-8"></script>

	<script type="text/javascript" charset="utf-8">
	$().ready(function() {
		var funcNum = window.location.search.replace(/^.*CKEditorFuncNum=(\d+).*$/, "$1");

		$('#finder').elfinder({
			url : '../../../' + window.opener.fn_url('elf_connector.images?ajax_custom=1'),
			cutURL: window.opener.current_location + '/',
			lang : 'en',

			editorCallback : function(url) {
				window.opener.CKEDITOR.tools.callFunction(funcNum, url);
				window.close();
			}
		});
	});
	</script>

</head>
<body>
	<div id="finder">finder</div>
</body>
</html>
